<?php

// set include path to work with the libs
set_include_path('.' . PATH_SEPARATOR . get_include_path() . PATH_SEPARATOR . (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'libs'));

function __autoload($className)
{
    static $libPath = null;
    
    if (null === $libPath)
    {
        $libPath = (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'libs');
    }
       
    $inLibFilePath =  str_replace('_', '/', $className) . '.php';
    
    if (file_exists($libPath . DIRECTORY_SEPARATOR . $inLibFilePath))
    {
        return require_once $inLibFilePath;
    }
}

require_once 'Kao.php';


